# @author:Wei Junjie
# @time:2024/5/24 20:11
# @file temp.py
# --*--coding: utf-8 --*--
"""
测试数据

"""
import dis
import os
import time

import requests,re
from bs4 import BeautifulSoup
import subprocess
# import os
# VIDEO_URL =LOG_PATH_SAVE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'VIDEO','Porn_Hub')
# filelist = os.listdir(os.path.join(VIDEO_URL,'����'))
# for item in filelist:
#     os.rename(os.path.join(VIDEO_URL,'����',item),os.path.join(VIDEO_URL,'����',item+'.webm'))
#
# for second_item in filelist:
#     print(second_item)



# url='https://cn.pornhub.com/view_video.php?viewkey=ph62be07e65920d'
# cookies = {
#     'accessAgeDisclaimerPH': '1',
# }
# headers = {
#     'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36',
# }
#
# res=requests.get(url,cookies=cookies,headers=headers)
#
# soup=BeautifulSoup(res.text,'html.parser')
#
# print(soup.prettify())



# pattern='videoUrl":"(.*?)"'
# with open("temp_reg.html",'r',encoding='utf-8') as f:
#     res=f.read()
#     res=re.findall(pattern,res)
#
# for item in res:
#     if 'urlset'  in item:
#         print(''.join(item.split('\\')))



# 打开m3u8合并程序
# res=subprocess.run(r"F:\数据备份\ShareX\N_m3u8DL-CLI_v3.0.2.exe",encoding='utf-8')
#
# print(res.returncode)

class TempSpider:
    TIMER=time.ctime()

    def print_time(self):
        print(self.TIMER)


if __name__ == '__main__':
    pass